import {request} from "../../utils/request"
import type {teacherType,classType} from "../../modal/lqy/user";


export let teacherDetail= (params:object)=>{
	return request.postRequest<teacherType>("SchoolSys/teaList",params)
}

export let classDetail= (params:object)=>{
	return request.postRequest<classType>("SchoolSys/clazz/select",params)
}

//修改教师
export let teacherChange= (params:object)=>{
	return request.postRequest("SchoolSys/updateTeacher",params)
}
//根据教师编号,教师姓名,教师职称三个条件查询教师列表
export let teacherSearch= (params:object)=>{
	return request.postRequest("SchoolSys/getTeachersByCondition",params)
}
//添加教师
export let teacherAdd= (params:object)=>{
	return request.postRequest("SchoolSys/addTeacher",params)
}
//职称下拉框
export let titleListOption= (params:object)=>{
	return request.postRequest("SchoolSys/titleList",params)
}
//科目下拉框
export let SubListOption= (params:object)=>{
	return request.postRequest("SchoolSys/SubList",params)
}
//通过Id查询到教师
export let teacherSearchById= (params:object)=>{
	return request.postRequest("SchoolSys/getTeacherById",params)
}
//删除教师
export let teacherdelate= (params:object)=>{
	return request.postRequest("SchoolSys/deleTea",params)
}

//用户角色role/find
export let allrolelist= (params:object)=>{
	return request.postRequest("SchoolSys/role/find",params)
}